package org.rency.crawler.dal.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 描述: 元数据配置
 * 类型: JAVA<br>
 * 最近修改时间:2017/8/4 11:10<br>
 *
 * @author CaiyuRen
 * @version [版本号, V1.0]
 * @since 2017/8/4 11:10
 */
@Document(collection = "fetchStateRule")
@CompoundIndexes({
    @CompoundIndex(name = "uidx_name", def = "{'fsCode':1,'fsStatus':1}", unique = true)})
public class FetchStateRuleDO extends BaseDO {

  @Id
  private String         id;

  private String         fsCode;

  /**
   * 抓取状态
   */
  private String         fsStatus;

  private String         nextFsCode;

  /**
   * 重试次数
   */
  private int            retryTimes;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getFsCode() {
    return fsCode;
  }

  public void setFsCode(String fsCode) {
    this.fsCode = fsCode;
  }

  public String getFsStatus() {
    return fsStatus;
  }

  public void setFsStatus(String fsStatus) {
    this.fsStatus = fsStatus;
  }

  public String getNextFsCode() {
    return nextFsCode;
  }

  public void setNextFsCode(String nextFsCode) {
    this.nextFsCode = nextFsCode;
  }

  public int getRetryTimes() {
    return retryTimes;
  }

  public void setRetryTimes(int retryTimes) {
    this.retryTimes = retryTimes;
  }
}
